package cn.wk.exception;

public class GlobalException extends RuntimeException{
    private Integer statuCode;

    public GlobalException(){}

    public GlobalException(String message){
        super(message);
    }

    public GlobalException(SystemError systemError){
        super(systemError.getReason());
        this.statuCode = systemError.getStatuCode();
    }

    public Integer getStatuCode() {
        return statuCode;
    }

    public void setStatuCode(Integer statuCode) {
        this.statuCode = statuCode;
    }
}
